package com.lp.mgt.entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.apache.ibatis.type.Alias;
import org.springframework.format.annotation.DateTimeFormat;

import com.lp.mgt.commons.Pager.Page;

import lombok.Data;
@Alias("role")
@Data
public class Role extends Page implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7558854941324112086L;
	private String rid;
	private String roleName;
	private String roleKey;
	private String dataScope;
	private String status;
	private String delFlag;
	private String description;
	private String remark;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	public Date createTime;
	private List<User> users;// 一个角色对应多个用户
	private List<Menu> menus;
	
}
